package com.huawei.crm.job.quartz;

import org.quartz.*;

import java.util.Date;

/**
 * job任务
 *
 * @author luohua
 */
public class HelloJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        JobDetail jobDetail = jobExecutionContext.getJobDetail();
        JobKey key = jobDetail.getKey();
        System.out.println(key.getName());
        System.out.println(key.getGroup());
        System.err.println("hello job exec" + new Date() + Thread.currentThread().getName());
    }
}

